#pragma once
#include <iostream>
#include <functional>

class Task
{
    //typedef std::function<int(int,int)> func_t;
    using func_t = std::function<int(int,int)>;
public:
    Task(){}
    Task(int x,int y,func_t func)
        :x_(x),y_(y),func_(func) 
    {}
    int operator()()
    {
        return x_ + y_;
    }

public:
    int x_;
    int y_;
    func_t func_;
};